package com.wkr.order.service.fallback;

import com.wkr.common.CommonResponse;
import com.wkr.order.feignclient.OrderFeignClient;
import org.springframework.stereotype.Component;

@Component
public class OrderFallBackService implements OrderFeignClient {
    @Override
    public CommonResponse<Boolean> createTrainOrder() {
        return CommonResponse.fail("-1", "订单服务不可用");
    }

    @Override
    public CommonResponse<String> hi() {
        return CommonResponse.fail("-1", "订单服务hi接口不可用");
    }

    @Override
    public CommonResponse<Boolean> testForTimeOut() {
        return CommonResponse.fail("-1", "订单服务testForTimeOut接口不可用");
    }
}
